package com.youlu.campus.entity.order.dto;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class LogisticsSubOrderQueryDto {
    private String id;
    private String activityId;
    private String oNo;
    private String orderNo;
    private String status;
    /**
     * 订单提示语
     */
    private String tips;
    private Date shippingTime;
    private String itemInfoId;
    private String itemName;
    private String itemImageUrl;
    private Integer price;
    private Integer num;
    /**
     * 物流公司
     */
    private String logisticsCompany;
    /**
     * 物流编号
     */
    private String logisticsNo;
    /**
     * 礼品
     */
    private String gift;
    /**
     * 是否礼品
     */
    private Boolean gifted;
    /**
     * 售价
     */
    private Integer salePrice;
    /**
     * 退款状态
     */
    private String refundStatus;
    /**
     * 是否有虚拟商品
     */
    private Boolean hasVirtualGoods;
    /**
     * 虚拟商品ID
     */
    private String virtualGoodsId;
    /**
     * 虚拟商品名称
     */
    private String virtualGoodsName;

    private String virtualGoodsCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LogisticsSubOrderQueryDto pig = (LogisticsSubOrderQueryDto) o;
        boolean itemInfoIdCheck = false;

        if (this.itemInfoId == pig.itemInfoId) {
            itemInfoIdCheck = true;
        }
        if (itemInfoIdCheck) {
            return true;
        }
        return false;
    }

}
